<?php
	# This is PDO based
	class mysql{
		$dbh;
		public function connect($server,$database,$username,$password){
			$dbh = new PDO('mysql:host={'.$server.'};dbname={'.$database.'};',$username,$password);
			return $dbh;
		}
		//$do_this is the callback function when handling information. 
		// EX:
		// THIS FUNCTION RETURNS $ROW
		// $mysql->get(*, users);
		// while($row){
		// 		print_r($row)
		//}
		public function get($columns, $table){
			$stmt = $dbh->prepare('SELECT (:columns) FROM (:table)');
			$stmt->bindParam(':columns',$columns);
			$stmt->bindParam(':table', $table);
			$row = $stmt->fetch();
			return $row;
		}
		public function insert($table,$value){
			$stmt = $dbh->prepare("INSERT INTO REGISTRY (:table) VALUES (:value) ")
			$stmt->bindParam(':table', $table);
			$stmt->bindParam(':value', $value);
			$stmt->execute();
		}
		
	}